package com.study.mike.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.study.mike.common.enums.MagicalLandEnum;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author KangHui
 * @Date 2022/12/23 16:07
 */
@Data
@TableName("magical_land")
public class MagicalLandDO implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * gameName
     */
    @TableField("game_name")
    private String gameName;

    /**
     * 编号
     */
    @TableField("game_no")
    private String gameNo;

    /**
     * 类型
     */
    @TableField("magical_type")
    private MagicalLandEnum magicalType;

    /**
     * 开发公司（团队）
     */
    @TableField("develop_company")
    private String developCompany;

    /**
     * 售价
     */
    @TableField("sale_price")
    private BigDecimal salePrice;

    /**
     * 发行时间
     */
    @TableField("issue_time")
    private Date issueTime;

    /**
     * 体量
     */
    @TableField("volume")
    private String volume;

    /**
     * 作者
     */
    @TableField("arthur")
    private String arthur;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 删除标识
     */
    @TableLogic
    @TableField("delete_flag")
    private Integer deleteFlag;

}
